package com.hspedu.homework.homework05;

public class Teacher extends Worker {

    private double remuneration;

    public Teacher(String name, double salary, double remuneration) {
        super(name, salary);
        this.remuneration = remuneration;
    }

    public double getRemuneration() {
        return remuneration;
    }

    public void setRemuneration(double remuneration) {
        this.remuneration = remuneration;
    }

    @Override
    public void printSal() {
        System.out.println("老师" + getName() + "年工资为：" + (getSalary() * 12 + remuneration * 300));
    }

}
